import Http from '@/http'

export function chargeApi(params:any){
    return Http.post<number>('charge/order', params)
}

export function chargeResApi(orderId:number) {
    return Http.get('charge/res/' + orderId)
}

export function stopChargeApi(orderId:number) {
    return Http.post('charge/stop', {id : orderId})
}

export function stopChargeResApi(orderId:number) {
    return Http.get('charge/stop/res/' + orderId)
}